package
{
	import flash.display.Bitmap;
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.net.URLRequest;

	public class test extends Sprite
	{
		private var loader:Loader=new Loader();
		private var image:Bitmap;
		public function test()
		{
			var url:URLRequest=new URLRequest("ceil1.png");
			loader.load(url);
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onload);
		}
		
		public function onload(e:Event):void{
			var image:Bitmap=Bitmap(loader.content);
			image.x=140;
			image.y=150;
			image.addEventListener(Event.ENTER_FRAME,onEnter);
			this.addChild(image);
		}
		public function onEnter(e:Event):void{
			image.x++;
		}
	}
}